package org.example.video.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.commons.entity.Collect;
import com.example.commons.entity.UserVideoHistory;
import com.example.commons.entity.Video;

import java.util.List;

/**
 * @program: authority-v3.0.7
 * @ClassName: VideoHistoryService
 * @description: 视频历史记录 service
 * @author:dyy
 * @Version 3.0
 **/

public interface VideoHistoryService extends IService<UserVideoHistory> {
    void saveHistory(Long userId, Long videoId);
    List<String> getRecentVideoNames(Long userId, int limit);
    List<Video> getRecentVideos(Long userId, int limit);
}
